﻿<script language ="javascript" type="text/javascript" >
 <!-- 
  function document.onkeydown()
  { 
    //debugger;
    var KeyCode = event.keyCode;
    if (KeyCode==116 || KeyCode==13 || KeyCode==8 || KeyCode==32 || (KeyCode>=112 && KeyCode <= 121))
    {
        event.keyCode = 0;
        event.returnValue=false;
    }    
  }  
  
  document.oncontextmenu = function()
   {
      return false;
   }
   
   //限定字符 !@#$%^&* ~
function RestrictCharacter(obj)
{
  var KeyCode = event.keyCode;
  if ( (event.shiftKey == true && ((KeyCode >=49 && KeyCode <= 57)  ) ) || (KeyCode >=106 && KeyCode <= 111) || (KeyCode >= 186 && KeyCode <= 192) || (KeyCode >=219 && KeyCode<=222))
  {
    event.returnValue=false;
  }
}
   
 -->
</script> 